package com.oro.domain.testManyToMany;

import static javax.persistence.CascadeType.ALL;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

/**
 * Entity implementation class for Entity: B
 * 
 */
@Entity // Sede
public class B implements Serializable {

	@ManyToMany(cascade = ALL)
	private Collection<A> as;

	@Id
	@GeneratedValue
	private Long id;

	private static final long serialVersionUID = 1L;

	public B() {
		super();
		as = new ArrayList<A>();
	}

	public Collection<A> getAs() {
		return as;
	}

	public Long getId() {
		return id;
	}

	public void setAs(Collection<A> as) {
		this.as = as;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
